|
|
@@ -2,6 +2,7 @@ module Agents
|
2
|
2
|
class PostAgent < Agent
|
3
|
3
|
include WebRequestConcern
|
4
|
4
|
|
|
5
|
+ can_dry_run!
|
5
|
6
|
default_schedule "never"
|
6
|
7
|
|
7
|
8
|
description <<-MD
|
|
|
@@ -14,7 +15,7 @@ module Agents
|
14
|
15
|
By default, non-GETs will be sent with form encoding (`application/x-www-form-urlencoded`). Change `content_type` to `json` to send JSON instead. Change `content_type` to `xml` to send XML, where the name of the root element may be specified using `xml_root`, defaulting to `post`.
|
15
|
16
|
|
16
|
17
|
If `emit_events` is set to `true`, the server response will be emitted as an Event and can be fed to a WebsiteAgent for parsing (using its `data_from_event` and `type` options). No data processing
|
17
|
|
- will be attempted by this Agent, so the "body" value will always be raw text.
|
|
18
|
+ will be attempted by this Agent, so the Event's "body" value will always be raw text.
|
18
|
19
|
|
19
|
20
|
Other Options:
|
20
|
21
|
|